package com.chainshop.restock.mapper;


import com.chainshop.common.core.domain.pojo.Stock;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @description:
 */
@Repository
public interface RestockStockMapper {
    /**
     * 查询库存列表
     * @param stock
     * @return
     */
    List<Stock> selectStockList(Stock stock);

    Stock selectStockById(Integer id);

    int updateStock(Stock stock);

    int deleteStockById(Integer id);

    int deleteStockByIds(Integer[] ids);


    List<Stock> selectStockListByProductId(Long productId);
}
